tinymce.init({
    selector: '#content',
    language:'zh_CN',
    skin: 'oxide',
    menubar: false,
    statusbar: false,
    plugins: [
        'image hr link fullscreen code preview table ',
        'advlist autolink lists charmap print anchor pagebreak spellchecker',
        'searchreplace wordcount visualblocks visualchars insertdatetime media nonbreaking',
        'save contextmenu directionality emoticons template paste textcolor',
        'codesample',
    ],
    toolbar: [
        ' formatselect fontselect | bold italic underline strikethrough |' +
        ' bullist numlist alignleft aligncenter alignright ' +
        ' indent outdent | table blockquote hr emoticons | link image removeformat fullscreen preview'
    ]
});

/**
 * toolbar items:
 *  - fontsizeselect : 选择字体大小
 *  - bullist        : 符号列表
 *  - numlist        : 数字列表
 *  - alignjustify   : 两端对齐
 */

// 解决Chrome浏览器存在的无效表单控件不可聚焦问题
$('#content').removeAttr('required');